.PHONY:all
all:cal_client cal_server

cal_client:cal_client.cc
	g++ -o $@ $^ -std=c++11 -ljsoncpp
cal_server:cal_server.cc
	g++ -o $@ $^ -std=c++11 -lpthread -ljsoncpp

.PHONY:clean
clean:
	rm -f cal_client cal_server